import React, { Component } from 'react'
// import PubSub from 'pubsub-js'
import Son from './Son'
export default class Far extends Component {
  constructor() {
    super();
    console.log("组件开始创建");
  }

  render() {
    console.log("组件进行渲染了，render");
    return (
      <div>
        far
        <Son></Son>
      </div>
    );
  }
  componentDidMount() {
    console.log("组件挂载了-componentDidMount");
  }
  componentDidUpdate() {
    console.log("组件更新完成-componentDidUpdate");
  }
  componentWillUnmount() {
    
    console.log("组件即将卸载-componentwillUnmount");
  }
}
